package org.jeecg.entity.meter;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 仪表更换记录表
 * @Author: liurui
 * @Date:   2020-11-20
 * @Version: V1.0
 */
@Data
@TableName("meter_change")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="meter_change对象", description="仪表更换记录表")
public class MeterChange extends BaseEntity  {
    
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createdAt;
	private String tenantId;
	/**创建者id*/
	@Excel(name = "创建者id", width = 15)
    @ApiModelProperty(value = "创建者id")
	private Integer createdById;
	/**创建者名*/
	@Excel(name = "创建者名", width = 15)
    @ApiModelProperty(value = "创建者名")
	private String createdByName;
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**新表id*/
	@Excel(name = "新表id", width = 15)
    @ApiModelProperty(value = "新表id")
	private String meterNewId;
	/**旧表id*/
	@Excel(name = "旧表id", width = 15)
    @ApiModelProperty(value = "旧表id")
	private String meterOldId;
	/**新表初始金额*/
	@Excel(name = "新表初始金额", width = 15)
    @ApiModelProperty(value = "新表初始金额")
	private String newBeginAmount;
	/**新表初始量*/
	@Excel(name = "新表初始量", width = 15)
    @ApiModelProperty(value = "新表初始量")
	private String newBeginUse;
	/**旧表剩余金额*/
	@Excel(name = "旧表剩余金额", width = 15)
    @ApiModelProperty(value = "旧表剩余金额")
	private String oldRemainAmount;
	/**旧表剩余量*/
	@Excel(name = "旧表剩余量", width = 15)
    @ApiModelProperty(value = "旧表剩余量")
	private String oldRemainUse;
}
